package sativa;

import javax.swing.JFrame;

import planets.ControlPanel;
import sativa.ui.GamePanel;

public class RunSativa
{
	/**
	 * The driver for the game
	 * 
	 * @param args
	 *            Command-line arguments
	 */
	public static final void main(String[] args)
	{
		JFrame frame = new JFrame();

		GamePanel gamePanel = new GamePanel(800, 600);
		ControlPanel controlPanel = new ControlPanel();

		frame.setJMenuBar(controlPanel);

		frame.getContentPane().add(gamePanel);

		frame.pack();
		frame.setVisible(true);

		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		gamePanel.run();
	}
}
